﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Shapes;
using TimedTask.Core;

namespace TimedTask.Views
{
    /// <summary>
    /// NewsList.xaml 的交互逻辑
    /// </summary>
    public partial class NewsList : Window
    {
        private WebBrowser wb = null;
        public NewsList()
        {
            InitializeComponent();
            //Helper.Loading(TaskManager.SpiderNewsToHtml, null);
            //LoadNewsList();

            this.btnClose.Click += (s, e) =>
            {
                base.Close();
            };
            this.MouseLeftButtonDown += (s, e) =>
            {
                if (e.LeftButton == MouseButtonState.Pressed)
                {
                    this.DragMove();
                }
            };
        }

        //加载新闻资讯
        private void LoadNewsList()
        {
            /*
            string path = Models.Const.StartPath + "\\News\\news.htm";
            if (!File.Exists(path))
                path = Models.Const.NewsUrl;
            TimedTask.Control.WebBrowserOverlay wbo = new TimedTask.Control.WebBrowserOverlay(brMain);
            wb = wbo.WebBrowser;
            wb.Navigate(new Uri(path));
            */
        }
    }
}
